:root {
    --primary-color: #000;
    --secondary-color: #fff;
  }

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
html{
    transition: all 0.5s ease-in;
}
html.dark {
    --primary-color: #fff;
    --secondary-color: #333;
  }
  
  html.dark {
    background-color: #111;
    color: var(--primary-color);
  }
  

body{
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    /* overflow: hidden; */



}
.toggle{
    cursor: pointer;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 0;
    border-radius: 4px;
    padding: 8px 12px;
    position: absolute;
    top: 100px;
}
.toggle:focus{
    outline: 0;
}
.clock-container{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

}
.clock{
    width: 200px;
    height: 200px;
  position: relative;

}
.needle{
  background-color: var(--primary-color);
  top: 50%;
  left: 50%;
  height: 65px;
  width: 3px;
position: absolute;
transform-origin: bottom center;
transition: all 0.5s ease-in;

}
.needle.hour{
    transform: translate(-50%,-100%) rotate(0deg);
}
.needle.minute {
    transform: translate(-50%, -100%) rotate(0deg);
    height: 100px;
  }
  
  .needle.second {
    transform: translate(-50%, -100%) rotate(0deg);
    height: 100px;
    background-color: #e74c3c;
  }
  .center-point {
    background-color: #e74c3c;
    width: 10px;
    height: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
  }
  .center-point::after {
    content: '';
    background-color: var(--primary-color);
    width: 5px;
    height: 5px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
  }
  .time {
    margin-top: 15px;
    font-size: 60px;
  }
  .date {
    color: #aaa;
    font-size: 16px;
    letter-spacing: 0.3px;
    /* text-transform: uppercase; 仅大写 */
  }
  .date .circle{
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    height: 25px;
    width: 25px;
    /* display: inline-flex; */
    align-items: center;
    justify-content: center;
    line-height: 25px;
    transition: all 0.5s ease-in;
    font-size: 14px;
  }
  